import { ref, watch } from 'vue';

const usePropsData = (modelData) => {
  let data = ref({});
  watch(
    () => modelData.value,
    (newVal) => {
      data.value = newVal.config.props;
    },
    {
      immediate: true,
    }
  );
  return data;
};
export { usePropsData };
